package com.ffyc.ssm.dao;

import com.ffyc.ssm.modle.Admin;
import com.ffyc.ssm.modle.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


public interface AdminDao {
    //void saveAdmin();

 void  updateAdmin(Admin admin);

 List<Admin> getList();

 List<Role> getrolelist();

 void insertAdmin(Admin admin);

 void insertAdminRole(@Param("aid") Integer id, @Param("rid") Integer roleid);


 Admin findAdmin(Integer id);

 void alterAdmin(Admin admin);

 void deleteAdminRole(Integer id);
}
